import request from '@/utils/request'

// 查询借还审核列表
export function listBrAudit(query) {
  return request({
    url: '/assets/brAudit/list',
    method: 'get',
    params: query
  })
}

// 查询借还审核详细
export function getBrAudit(borrowLogId) {
  return request({
    url: '/assets/brAudit/' + borrowLogId,
    method: 'get'
  })
}

// 新增借还审核
export function addBrAudit(data) {
  return request({
    url: '/assets/brAudit',
    method: 'post',
    data: data
  })
}

// 修改借还审核
export function updateBrAudit(data) {
  return request({
    url: '/assets/brAudit',
    method: 'put',
    data: data
  })
}

// 删除借还审核
export function delBrAudit(borrowLogId) {
  return request({
    url: '/assets/brAudit/' + borrowLogId,
    method: 'delete'
  })
}
